﻿Public Class Lover
    Inherits BaseResult

    <System.Xml.Serialization.XmlElement("dateRegistered")>
    Public dateRegisteredString As String
    Public ReadOnly Property DateRegistered As DateTime
        Get
            Return DateTime.ParseExact(dateRegisteredString, "yyyy-MM-dd HH:mm:ss", System.Globalization.CultureInfo.InvariantCulture)
        End Get
    End Property

    <System.Xml.Serialization.XmlElement("dateLastActive")>
    Public dateLastActiveString As String
    Public ReadOnly Property DateLastActive As DateTime
        Get
            Return DateTime.ParseExact(dateLastActiveString, "yyyy-MM-dd HH:mm:ss", System.Globalization.CultureInfo.InvariantCulture)
        End Get
    End Property

    <System.Xml.Serialization.XmlElement("rating")>
    Public Property Rating As Integer

    <System.Xml.Serialization.XmlElement("location")>
    Public Property Location As String

    <System.Xml.Serialization.XmlElement("numColors")>
    Public Property NumberOfColours As Integer

    <System.Xml.Serialization.XmlElement("numPalettes")>
    Public Property NumberOfPalettes As Integer

    <System.Xml.Serialization.XmlElement("numPatterns")>
    Public Property NumberOfPatterns As Integer

    <System.Xml.Serialization.XmlElement("numCommentsMade")>
    Public Property NumberOfCommentsMade As Integer

    <System.Xml.Serialization.XmlElement("numLovers")>
    Public Property NumberOfLovers As Integer

    <System.Xml.Serialization.XmlElement("numCommentsOnProfile")>
    Public Property NumberOfCommentsOnProfile As Integer

    Public Property Comments As Comment

End Class
